<?php
$cache_cat = array();
$menus = $this->mmenu->arrange_cate(70,$cache_cat);
?>
<div class="cls"></div>

<div class="menu_top">
	<ul>
	<?php if($menus)
		{
		foreach($menus as $menu)
		{
			if(!$cache_cat[$menu->men_value]) continue;
			$cat = $cache_cat[$menu->men_value];
	?>
		<li class="<?php echo $cat->cat_code;?>"><a href="<?php echo category_url($cat->cat_code);?>"><?php echo $cat->cat_name;?></a> </li>
		<?php
			}
		}
		?>
	</ul>
	<a class="view_more" href="javascript:void(0);">
		Xem tất cả
	</a>
</div>



<?php
$cache_cat = array();
$menus = $this->mmenu->arrange_cate(1, $cache_cat);
?>
<div class="hidden_menu">
	
	<?php if($menus)
		{
			$i = 1;
			foreach($menus as $menu)
			{
				if(!$cache_cat[$menu->men_value]) continue;
			?>
			<ul>
				<li class="menu-top-parent">
					<strong><a href="<?php echo category_url($cache_cat[$menu->men_value]->cat_code);?>" title="Game <?php echo $menu->men_name;?>"><?php echo $menu->men_name;?></a></strong>
				</li>
				<?php if(isset($menu->child)) {
					foreach($menu->child as $child)
					{
						$ccat = @$cache_cat[$child->men_value];
						if(!$ccat) continue;
					?>
						<li class="menu-top-sub"><a href="<?php echo category_url($ccat->cat_code);?>" title="Game <?php echo $child->men_name;?>"><?php echo $child->men_name;?></a></li>
					<?php
					}
				}?>
			</ul>
			<?php
			if($i %5 == 0)
			{
				echo '<div class="cls"></div>';
			}
			$i++;
			}
		}
		?>
</div>
